import { $post, $get } from '@js/request'
import { SeriesSchema } from '@components/schema/seriesCase';

// 创建系列案
export async function caseInputRequest (d: { [k: string]: any }): Promise<string | string[]> {
  const res = await $post('/api/commission/caseserie', d)
  return res.data
}

// 获取系列案详情
export async function getSeriesRequest (id: string): Promise<SeriesSchema> {
  const res = await $get(`/api/commission/caseserie/${id}`)
  return res.data
}
